Use correct size for root window with multiple monitors
authorTor Lillqvist <tml@iki.fi>
Sun, 18 Oct 2009 11:35:17 +0000 (14:35 +0300)
committerTor Lillqvist <tml@iki.fi>
Sun, 18 Oct 2009 11:35:17 +0000 (14:35 +0300)
commitab13c00a38e17d239cab10292f2943014c1e547d
treed4bbf54b88c9dcc68f8b1c763a61300497007e68
parent0698ddd42154874578942f1d8482d4bf0b8bbfb3
Use correct size for root window with multiple monitors

The root window width and height have already been correctly
initialised in _gdk_root_window_size_init() to cover all monitors, so
don't incorrectly re-initialise using GetSystemMetrics(SM_C[XY]SCREEN)
which only gives the size of the primary monitor anyway. (See MSDN.)

This fixes at least gdk_screen_get_{width,height}() which indirectly
affects at least the positioning of combo box pop-up menus on multiple
monitors.
gdk/win32/gdkwindow-win32.c